import { sidebar } from "./sidebar";
import loadCode from "../../../views/demo-block/src/loadCode";

const config: import("vitepress").UserConfig = {
    title: 'earthsdk-ui-next',
    description: '一个vue3组件库',
    // base: "/",//单目录发布
    // base: "/earthsdk-ui-next/",//gitee发布
    base: "/resource/earthsdkui/",//公司内网地址多级目录发布
    themeConfig: {
        siteTitle: "EarthSDK UI",
        logo: "/logo.png",
        nav: [
            { text: "文档", link: "/components/" },
            { text: "西部世界", link: "https://bjxbsj.cn" },
        ],
        sidebar,
    },
    markdown: {
        theme: "vitesse-dark",
        config: md => {
            md.use(loadCode);
        },
    },
};

export default config;
